package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 问卷题目业务对象
 *
 * @author ruoyi
 * @date 2024-12-13
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class InvestigationQuestionBo extends BaseEntity {

    /**
     * 
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 问卷id
     */
    @NotNull(message = "问卷id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long investigationId;

    /**
     * 顺序
     */
    @NotNull(message = "顺序不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long questionOrder;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 类型：1单选、2多选、3简答
     */
    @NotNull(message = "类型：1单选、2多选、3简答不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer questionType;


}
